package com.atguigu0.sql

import org.apache.spark.sql.{DataFrame, SparkSession}

/**
 * @description: xxx
 * @time: 2020/6/15 15:17
 * @author: baojinlong
 **/
object SparkHiveDemo {
  def main(args: Array[String]): Unit = {
    // 加载hive-site.xml配置文件
    val spark: SparkSession = SparkSession.builder().master("local[*]").appName("xx").getOrCreate()
    spark.sql("create table aa(id int)").show
    // 关闭连接
    spark.stop()
  }
}
